Copy A File(s) To All Users On A PC
I built this copy script to update an application on a PC that a bunch of users were on. Change the "TEST" directory to your needs and you should be good to go. Oh and there is a copy.log to review once it completes.
CODE:
cd /d c:\users
echo Started %date% %time% -- >>copy.log
for /f "delims=*" %%a in ('dir /b') do (
if exist "c:\users\%%a\test" (
echo Files moved for %%a >>copy.log
xcopy /e /q /y /i "c:\test\*" "c:\users\%%a\test\" >>copy.log
) else (
echo %%a is missing the folder specified >>copy.log
)
)
echo Finished %date% %time% -- >>copy.log
Use at your own risk
Download:
Copy A File(s) To All Users On A PC.zip
Tag(s):
Batch Local PC Could you spare a few coins?
Dogecoin - D838u1m9YRdzVVu8CZ1JsR78WHgQmUZSr8
Bitcoin - 13iKLoPXcWEYcGtqCi4UcjGQEs7r6M6LFc
Thank you